package com.btm.easymetadata.server.mapper.mybatisplus;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.btm.easymetadata.server.entity.dao.DataField;
import com.btm.easymetadata.server.entity.dao.LinkField;
import com.btm.easymetadata.server.entity.dto.LinkDataFieldDTO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.math.BigInteger;
import java.util.List;
import java.util.Map;

@Repository
public interface LinkFieldMapper extends BaseMapper<LinkField> {

    List<DataField> selectLinkable(LinkDataFieldDTO linkDataFieldDTO);

    List<Map<String, BigInteger>> selectLinked(@Param("fieldIds") List<Long> fieldId);
}
